package com.house.common.result;

// 异常信息枚举类
public enum HttpCodeEnum {
    SUCCESS(200,"操作成功"),
    ERROR(500,"系统错误"),
    LOGIN_ERROR(500,"登录错误"),
    LOGIN_CODE_ERROR(500,"验证码错误"),
    MESSAGE_NOT(202,"未收到信息"),
    USER_STATES_ERROR(405,"账号已锁定"),
    NOT_LOGIN(201,"未登录");

    int code;
    String msg;

    HttpCodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
